﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BatchDepositChange.aspx.cs" Inherits="H2.NET.Web.Pages.SMD.BatchDepositChange" %>

<%@ Import Namespace="H2.NET.Common" %>
<%@ Register Src="../../Controls/DwzAssessment.ascx" TagName="DwzAssessment" TagPrefix="uc" %>
<%@ Register Src="../../Controls/DwzAssessmentList.ascx" TagName="DwzAssessmentList" TagPrefix="uc" %>
<%@ Register Src="../../Controls/AjaxUpload.ascx" TagName="ajaxUpload" TagPrefix="uc" %>
<%@ Register Src="../../Controls/AjaxDepositUpload.ascx" TagName="ajaxDepositUpload" TagPrefix="uc" %>
<%@ Register Src="uc_head.ascx" TagName="uc_head" TagPrefix="uc1" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<head id="Head1" runat="server">
    <title><%=GetCache(TaskAPI.Process)%></title>
    <link href="<%=Page.ResolveUrl("~/Resource/Css/Style.css")%>" type="text/css" rel="stylesheet" />
    <link href="<%=Page.ResolveUrl("~/Resource/jBox/Blue/jbox.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/Css/validform.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/qtip/jquery.qtip.min.css")%>" rel="stylesheet" type="text/css" />
    <script src="<%=Page.ResolveUrl("~/Resource/dwz/js/jquery-1.7.2.min.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/Js/Common.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/Js/jquery.money.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/jBox/jquery.jBox-2.3.min.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/jBox/jquery.jBox-zh-CN.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/Js/Validform_v5.3.2.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/My97DatePicker/WdatePicker.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/qtip/jquery.qtip.min.js")%>" type="text/javascript"></script>

    <style type="text/css">
        .out_groupTable input[type=text] { width: 90px; }
    </style>
    <script type="text/javascript">
        $(function () {
            /* 初始化相关样式、表单验证提示 st */
            $("[datatype='*']").after("<em class='required'>*</em>");
            $("#form1").Validform({
                //提示信息将只会在表单提交时触发显示
                tipSweep: true,
                tiptype: function (msg, o, cssctl) {
                    if (o.type == 3) {
                        $.jBox.tip(msg, 'info');
                    }
                }
            });
            /* 初始化相关样式、表单验证提示 ed */

            /* 初始化控件提示 st */
            $.ajax({
                type: 'POST',
                url: '<%=Page.ResolveUrl("~/pages/smd/ajaxtools/handler.ashx?action=get_tips")%>',
                data: { pagename: 'depositchange.aspx' },
                dataType: "json",
                cache: false,
                success: function (json) {
                    for (var o in json) {
                        var ControlID = json[o].ControlID;
                        var Content = json[o].Content;
                        $("#" + ControlID).qtip({
                            content: Content
                        });
                    }
                }
            });
            /* 初始化控件提示 ed */

            /* 初始化控件提示 st */
            $.ajax({
                type: 'POST',
                url: '<%=Page.ResolveUrl("~/pages/smd/ajaxtools/handler.ashx?action=get_tips")%>',
                data: { pagename: 'depositchange.aspx' },
                dataType: "json",
                cache: false,
                success: function (json) {
                    for (var o in json) {
                        var ControlID = json[o].ControlID;
                        var Content = json[o].Content;
                        $("#" + ControlID).qtip({
                            content: Content
                        });
                    }
                }
            });
            /* 初始化控件提示 ed */

            $(".groupTable").tableGroup({ groupColumn: 1 });
        });

        /* 提交表单 st */
        function confirmSubmit() {
            if (window.confirm("确认要提交吗？")) {

                // 数据验证
                var in_id = $("#uc_dealer_in_dealer_id").val();
                var out_id = $("#uc_dealer_out_dealer_id").val();

                if (in_id == "" && out_id == "") {
                    $.jBox.tip("请选择进款经销商或者退款经销商", 'info');
                    return false;
                }

                $.jBox.tip('正在处理，请稍等...', 'loading');
                return true;
            }
            return false;
        }

        function depositExport() {


        }
        /* 提交表单 ed */
    </script>
</head>
<body>

    <div class="flowpage">
        <form id="form1" runat="server">
            <input type="hidden" id="RestrictDealer" name="RestrictDealer" value="false" />
            <!-- 标题 st -->
            <uc1:uc_head ID="uc_head1" runat="server" />
            <!-- 标题 ed -->
            <table class="formTable" style="width: 100%;">
                <tbody>
                    <tr>
                        <th>提交清单：</th>
                        <td>必须以<span style="color: red"> 保证金清单 </span>为名提交</td>
                    </tr>
                    <tr>
                        <th>财务：</th>
                        <td>必须以<span style="color: red"> 保证金批量确认 </span>为名来提交最终的批量保证金返还</td>
                    </tr>
                </tbody>
                <tbody>
                    <tr>
                        <th>上传保证金相关附件：</th>
                        <td colspan="5">
                            <uc:ajaxDepositUpload ID="DepositUpload" runat="server" />
                        </td>
                    </tr>
                </tbody>
                <!-- 审批列表 st -->
                <tbody id="assessment" runat="server" visible="false">
                    <tr>
                        <td class="title" colspan="6">审批列表</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <uc:DwzAssessmentList ID="DwzAssessmentList1" runat="server" />
                        </td>
                    </tr>
                </tbody>
                <!-- 审批列表 ed -->

                <!-- 审批意见 st -->
                <uc:DwzAssessment ID="DwzAssessment1" runat="server" />
                <!-- 审批意见 ed -->
            </table>
            <%  if (AksRequest.GetString("showbtn") != "0")
                { %>
            <div style="margin: 5px; padding-bottom: 10px; text-align: center;">
                <asp:Button ID="btn_submit" runat="server" CssClass="u-btn" Text="提交(Submit)" OnClick="btn_submit_Click" OnClientClick="return confirmSubmit();" />
                <input type="button" class="u-btn u-btn-c4" onclick="custom_close()" value="关闭(Close)" />
                <asp:HyperLink ID="hl_ExportPdf" runat="server" Visible="false" Target="_blank" CssClass="u-btn u-btn-c3" Style="height: 28px; line-height: 28px; display: inline-block;">生成(PDF)</asp:HyperLink>
                <asp:Button ID="btn_print" runat="server" CssClass="u-btn u-btn-c2" Text="打印(Print)" OnClientClick="window.print()" Visible="false" />

            </div>
            <%  } %>

            <!-- 表单内容 ed -->
        </form>
    </div>
    <div id="errorShow" style="margin: 5px; height: auto;">
        <div id="errorText">
        </div>
    </div>
</body>
</html>
